package com.bdqn.systems.mapper;

import com.bdqn.systems.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author cp
 * @since 2020-11-30
 */
public interface MenuMapper extends BaseMapper<Menu> {

    /**
     * 根据用户名获取所拥有的菜单权限
     * @param username
     * @return
     */
    List<String> userMenuPermissions(String username);
}
